/**
 * Copyright (c) 2018 小润科技 All rights reserved.

 * 版权所有，侵权必究！
 */

package com.xr.sy.modules.business.service;

import com.xr.common.page.PageData;
import com.xr.common.service.BaseService;
import com.xr.common.service.CrudService;
import com.xr.sy.modules.business.dto.NoticeDTO;
import com.xr.sy.modules.business.dto.QuestionDTO;
import com.xr.sy.modules.business.entity.NoticeEntity;
import com.xr.sy.modules.business.entity.QuestionEntity;

import java.util.Map;

public interface QuestionService extends CrudService<QuestionEntity, QuestionDTO> {

    PageData<QuestionDTO> page(Map<String, Object> params);

    QuestionDTO get(Long id);

    void save(QuestionDTO dto);

    void update(QuestionDTO dto);

    QuestionDTO latest();
}

